﻿namespace PMS.Client.FrmUser
{
    using PMS.BLL;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    public class FrmFind : Form
    {
        private UserBLL bll = new UserBLL();
        private Button btnSave;
        private IContainer components = null;
        private Label label1;
        private TextBox txtKeyword;

        public FrmFind()
        {
            this.InitializeComponent();
            this.txtKeyword.KeyUp += new KeyEventHandler(this.txtKeyword_KeyUp);
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            this.Keywords = this.txtKeyword.Text.Trim();
            base.DialogResult = DialogResult.OK;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmFind));
            this.label1 = new Label();
            this.txtKeyword = new TextBox();
            this.btnSave = new Button();
            base.SuspendLayout();
            this.label1.AutoSize = true;
            this.label1.Location = new Point(11, 0x2e);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x7d, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "请输入姓名或身份证号";
            this.txtKeyword.BackColor = Color.FromArgb(0xd9, 0xea, 0xf7);
            this.txtKeyword.BorderStyle = BorderStyle.FixedSingle;
            this.txtKeyword.Location = new Point(0x8e, 0x2a);
            this.txtKeyword.Name = "txtKeyword";
            this.txtKeyword.Size = new Size(220, 0x15);
            this.txtKeyword.TabIndex = 12;
            this.btnSave.BackColor = Color.White;
            this.btnSave.FlatStyle = FlatStyle.Popup;
            this.btnSave.Location = new Point(0x170, 0x29);
            this.btnSave.Name = "btnSave";
            this.btnSave.Size = new Size(0x4b, 0x17);
            this.btnSave.TabIndex = 13;
            this.btnSave.Text = "模糊查询";
            this.btnSave.UseVisualStyleBackColor = false;
            this.btnSave.Click += new EventHandler(this.btnSave_Click);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            this.BackColor = Color.FromArgb(0xa4, 0xc4, 0xeb);
            base.ClientSize = new Size(0x1d1, 120);
            base.Controls.Add(this.btnSave);
            base.Controls.Add(this.txtKeyword);
            base.Controls.Add(this.label1);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "FrmFind";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "人员查询";
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        private void txtKeyword_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Return)
            {
                this.btnSave_Click(sender, e);
            }
        }

        public string Keywords { get; set; }
    }
}

